/**
 * clonable.h is part of cbs-framework.
 *
 * cbs-framework is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * cbs-framework is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with cbs-framework.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef CLONABLE_H
#define CLONABLE_H

class Clonable
{
public:

    virtual ~Clonable() {}

    virtual Clonable * Clone() = 0;

protected:

    // Protect default constructor. Only available for subclasses
    Clonable() {}

    // Protect default copy constructor. Only available for subclasses
    Clonable( const Clonable & a_other ) {}

private:

    // Protect default operator =.
    Clonable & operator = ( const Clonable & a_other );
};

#endif // CLONABLE_H
